import request from "@/utils/request";
export const login = data => {
    return request({
        url: "/api/user/login",
        method: "POST",
        data,
    });
};
export const register = data => {
    return request({
        url: "/api/users",
        method: "POST",
        data,
    });
};
export const getUser = () => {
    return request({
        url: "/api/user/current",
    });
};
